package com.wondream.myframework.app.service.impl;

import com.wondream.myframework.app.common.util.SearchUtils;
import com.wondream.myframework.app.service.SearchService;
import com.wondream.myframework.app.vo.req.SearchCommonReq;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class SearchServiceImpl implements SearchService {
    @Override
    public List<Map<String, Object>> doCommon(SearchCommonReq params) {
//        Map<String, Object> result = new HashMap<>();
//        result.put("column1", "value1");
//        result.put("params", params.getSearchExp());
        List<Map<String, Object>> result = SearchUtils.search(params);
        return result;
    }
}
